﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace MobiMenu.Restaurant.Web
{
    /// <summary>
    ///OutputData 的摘要说明
    /// </summary>
    [DataContract(Namespace = "MobiMenu.Restaurant.Web")]
    public class OutputData
    {
        public OutputData()
        {
            Columns = new List<ColumnData>();
        }

        [DataMember(Name = "canViewDetail", EmitDefaultValue=false)]
        public bool CanViewDetail
        {
            get;
            set;
        }

        [DataMember(Name = "columns")]
        public List<ColumnData> Columns
        {
            get;
            private set;
        }

        [DataMember(Name = "pageNo")]
        public int PageNo
        {
            get;
            set;
        }

        [DataMember(Name = "pageSize")]
        public int PageSize
        {
            get;
            set;
        }

        [DataMember(Name = "caption")]
        public string Caption
        {
            get;
            set;
        }

        [DataMember(Name = "detailLink")]
        public string DetailLink
        {
            get;
            set;
        }

        [DataMember(Name = "editLink")]
        public string EditLink
        {
            get;
            set;
        }

        [DataMember(Name = "deleteLink")]
        public string DeleteLink
        {
            get;
            set;
        }

        [DataMember(Name = "source")]
        public string Source
        {
            get;
            set;
        }

        [DataMember(Name = "width")]
        public string Width
        {
            get;
            set;
        }

        [DataMember(Name = "height")]
        public string Height
        {
            get;
            set;
        }
    }
}